//const SERVERURL = "https://tmc.sxctkj.cc/api/";	//设置域名
// const SERVERURL = "http://192.168.2.124/api/";	//设置域名
const SERVERURL = "https://www.tourqu365.com/api/";

var Config = { };
/*路由地址*/
Config.common = {
    //=========================
    // 首页
    //=========================
    //推送列表
    getPushPageList             : SERVERURL + 'mobile/index_push/getPushPageList',
    //手机首页幻灯片
    getSlides                 : SERVERURL + 'mobile/index_slides/getSlides',
    //控制申请单、报销单显示
    getCompanyInfo            : SERVERURL + "mobile/index_company/getCompany",
    //获取申请单列表
    getApplyListOfCurrent     : SERVERURL + "common/travel/getApplyListOfCurrent",
    //获取电话
    getPhone                     : SERVERURL + "mobile/index_hotel/customerService",
    //=========================
    // 行程
    //=========================
    //行程列表
    getJourneyList             : SERVERURL + "mobile/mine_orders/journeyList",
    //获取系统公告
    getNotice                    : SERVERURL + "mobile/index_notice/getIndexNoticeList",
    //获取常用出行人列表
    getTravelers                 : SERVERURL + "mobile/mine_travelers/getpassengerlistbyuserid",
    //添加常用出行人列表
    addTravelers                 : SERVERURL + "mobile/mine_travelers/save",
    // 成本中心- 获取用户的成本中心
    getUsersCostList            : SERVERURL + "common/cost/getUsersCostList",
    //以base64方式上传图片
    editAvatar                 : SERVERURL + "mobile/mine_personal/uploadImgToBase64",
    //删除常用出行人
    delTravelers                 : SERVERURL + "mobile/mine_travelers/delete",
    //获取常用联系人列表
    getContact                 : SERVERURL + 'common/mine_contacts/getMyContactList',
    //删除常用联系人
    delContact                 : SERVERURL + 'common/mine_contacts/delMyContact',
    //添加常用联系人
    addContact                 : SERVERURL + 'common/mine_contacts/addMyContact',
    //选择出行人列表
    getTravelUser                : SERVERURL + 'mobile/index_train/getPassengerCardInfoList',
    //公司员工列表
    getCompanyUserList         : SERVERURL + "mobile/index_train/companyUsersList",
    // 成本中心审批信息
    getApproveInfo            : SERVERURL + "mobile/index_train/getApproveInfo",

    //=========================
    // 个人中心
    //=========================
    //我的差旅政策
    myTripPolicy                : SERVERURL + "mobile/mine_policy/getMyTripPolicy",
    //机票政策
    myPlanePolicy                 : SERVERURL + "common/policy/checkMultiPlanePolicy",
    //修改密码
    modifyPassword                : SERVERURL + "mobile/mine_setting/modifyPasswordByUserId",
    //检查支付密码是否存在
    isExistsPayPwd                : SERVERURL + "mobile/mine_setting/isExistsPayPassword",
    //修改支付密码
    modifyPayPassword             : SERVERURL + "mobile/mine_setting/modifyPayPasswordByUserId",
};
//=========================
// 火车
//=========================
Config.train    = {
    //查询火车票列表
    ticketsAvailable             : SERVERURL + "mobile/index_train/ticketsAvailable",
    //火车城市列表
    trainCityList             : SERVERURL + "mobile/index_train/stationName",
    //查询火车票详情
    ticketsDetails             : SERVERURL + "mobile/index_train/ticketDetails",
    //查看是否有权限预定火车票
    checkTrainPolicy            : SERVERURL + "common/policy/checkMultiTrainPolicy",
    //获取当前火车票的违规原因
    getTrainViolation         : SERVERURL + "mobile/index_train/getTrainViolation",
    //获取多人政策和政策判断结果
    getMultiTrainPolicy        : SERVERURL + "mobile/index_train/checkMultiTrainNoUniquePolicy",
    //去占座
    saveSeat                     : SERVERURL + "mobile/index_train/saveSeat",
    //提交火车票订单
    submitTrainOrder            : SERVERURL + "common/train/submitorder",
};
//=========================
// 飞机
//=========================
Config.plane = {
    //机票列表
    aircraftLists                : SERVERURL + "mobile/index_plane/simplifiedPlaneItem",
    //机票价格日期列表
    aircraftPriceList            : SERVERURL + "common/plane/getPriceByDate",
    //机票航班详情
    flightInfo                 : SERVERURL + "common/plane/planeDetails",
    //飞机城市列表
    planeCityList                : SERVERURL + "mobile/index_plane/airlineThreeCode",
    //机票提交订单
    planeSubmitOrder             : SERVERURL + "common/plane/submitOrder",
    //机票差旅政策
    getMultiPlanePolicy        : SERVERURL + "mobile/index_train/checkMultiPlaneNoUniquePolicy",
    //机票违规原因
    getPlaneViolation            : SERVERURL + "common/policy/getViolationReasonList",
    //机票第一次验价
    checkPlaneTicket             : SERVERURL + "common/plane/patByFlights",
    //创建PNR码
    createPnr                    : SERVERURL + "common/plane/createPnr",
    //二次验价
    checkSecondTicket            : SERVERURL + "common/plane/xmlRtPnr",
    //删除PNR码
    deletePnr                    : SERVERURL + "common/plane/deletePnr",
    //添加保险接口
    getPlaneAddInsurance         : SERVERURL + "common/plane/getPlaneAddInsurance"
};
//=========================
// 酒店
//=========================
Config.hotel = {
    //酒店列表
    getHotelList                : SERVERURL + "mobile/index_hotel/queryHotelList",
    //酒店城市列表
    hotelCityList                 : SERVERURL + "mobile/index_hotel/getHotelCity",
    //获取指定酒店房间列表
    getRoomItem                 : SERVERURL + "mobile/index_hotel/getRoomItemByHotelId",
    //酒店城市商业圈和行政区
    getDistrict                 : SERVERURL + "mobile/index_hotel/getHotelLocation",
    //根据城市名称获取城市id
    getCityId                     : SERVERURL + "mobile/index_hotel/getCityIdByName",
    //获取酒店房间
    getHotelDetail                : SERVERURL + "mobile/index_hotel/getRoomItemByHotelId",
    //获取酒店差旅政策
    getHotelPolicy                : SERVERURL + "common/policy/checkMultiHotelPolicy",
    //获取多人政策和政策判断结果
    getHotelMultiPolicy         : SERVERURL + "mobile/index_train/checkMultiHotelNoUniquePolicy",
    //获取酒店是否开启差旅汇总
    getIsOpenTc                 : SERVERURL + "common/hotel/isOpenTravelCollect",
    // 员工信息 - 根据ID获取员工的信息
    getUserInfoByIds            : SERVERURL + "common/passenger/getUserInfoByIds",
    // 获取酒店图片
    getHotelStaticInfo            : SERVERURL + "mobile/index_Hotel/getHotelStaticInfo",
    // 获取酒店图片
    getHotelImages                : SERVERURL + "common/Hotel/getHotelImages",
    // 提交订单
    hotelSubmitOrder            : SERVERURL + "common/Hotel/submitOrder",
    //
    getOrderIncrStatus            : SERVERURL + "common/Hotel/getIncrOrder",
};
//=========================
// 出差申请、报销、补助单
//=========================
Config.travel = {
    //=========================
    // 出差申请
    //=========================
    //出差申请单列表
    applyList					            : SERVERURL + "common/travel/applyList",
    //出差申请单个人申请的列表
    mineApplyList					        : SERVERURL + "common/travel/mineApplyList",
    //出差申请单详情
    applyInfo					            : SERVERURL + "common/travel/applyInfo",
    //出差申请单添加页面所需信息
    getAddApplyInfo				        : SERVERURL + "common/travel/getAddApplyInfo",
    //出差申请单添加
    addApply					            : SERVERURL + "common/travel/addApply",
    //出差申请单审核
    applyExamineApprove			     : SERVERURL + "common/travel/travelExamineApprove",
    //=========================
    // 出差报销单
    //=========================
    //出差报销单列表
    expenseList					        : SERVERURL + "common/travel/expenseList",
    //出差报销单详情
    expenseInfo					        : SERVERURL + "common/travel/expenseInfo",
    //获取出差/审核人员接口
    getPassengerList			        : SERVERURL + "common/travel/getPassengerList",
    //获取差旅订单
    getOrderList				        : SERVERURL + "common/travel/getOrderList",
    //获取申请单关联订单
    getApplyOrderList			        : SERVERURL + "common/travel/getApplyOrderList",
    //出差报销单——添加
    addExpense					        : SERVERURL + "common/travel/addExpense",
    //以base64方式上传图片
    uploadImg                     : SERVERURL + "common/upload/uploadImgToBase64",
    //以base64方式上传图片OSS
    uploadImgOss                     : SERVERURL + "common/upload/uploadImgToBase64Oss",
    //出差报销单审核
    expenseExamineApprove         : SERVERURL + "common/travel/expenseExamineApprove",
    //出差报销单取消
    expenseCancel                 : SERVERURL + "common/travel/expenseCancel",
    //出差报销单作废
    expenseInvalid                : SERVERURL + "common/travel/expenseInvalid",
    //出差申请单取消
    applyCancel                 : SERVERURL + "common/travel/applyCancel",
    //出差申请单作废
    applyInvalid                : SERVERURL + "common/travel/applyInvalid",
    //=========================
    // 出差补助单
    //=========================
    //补助单-关联订单【出行人中有当前人的】
    getApplyOrderListAllowance    : SERVERURL + "common/travel/getApplyOrderListAllowance",
    //补助单-申请单列表【出行人中有当前人的】
    mineApplyListAllowance        : SERVERURL + "common/travel/mineApplyListAllowance",
    //补助单-获取个人的订单
    getOrderListAllowance         : SERVERURL + "common/travel/getOrderListAllowance",
    //补助单-添加
    addAllowance                : SERVERURL + "common/travel/addAllowance",
    //获取补助单详情
    allowanceInfo                 :SERVERURL + "common/travel/allowanceInfo",
    //出差补助单取消
    allowanceCancel             : SERVERURL + "common/travel/allowanceCancel",
    //出差补助单作废
    allowanceInvalid            : SERVERURL + "common/travel/allowanceInvalid",
    //出差补助单审核
    allowanceExamineApprove     : SERVERURL + "common/travel/allowanceExamineApprove",
    //获取差旅政策 城市信息
    getTripPolicyCityByCompany    : SERVERURL + "common/travel/getTripPolicyCityByCompany",
    //=========================
    // 订单-申请单、报销单、补助单
    //=========================
    //我的订单-出差补助单列表-全部（不用了）
    allowanceList                 : SERVERURL + "common/travel/getAllowanceList",
    //我的订单-出差申请单列表——我的
    applyListMine                 : SERVERURL + "common/travel/applyListMine",
    //我的订单-出差申请单列表——待我审批的
    applyListApprove            : SERVERURL + "common/travel/applyListApprove",
    //我的订单-出差报销单列表——我的
    expenseListMine             : SERVERURL + "common/travel/expenseListMine",
    //我的订单-出差报销单列表——待我审批的
    expenseListApprove            : SERVERURL + "common/travel/expenseListApprove",
    //我的订单-出差补助单列表——我的
    allowanceListMine             : SERVERURL + "common/travel/allowanceListMine",
    //我的订单-出差补助单列表——待我审批的
    allowanceListApprove        : SERVERURL + "common/travel/allowanceListApprove",
};
//=========================
// 我的订单
//=========================
Config.order = {
    //订单列表
    orderLists                    : SERVERURL + "mobile/mine_orders/getOrderList",
    //订单详情
    getOrderInfo                : SERVERURL + "mobile/mine_orders/getOrderInfo",
    //取消订单
    orderCancel                 : SERVERURL + "mobile/mine_orders/cancelOrder",
    //退票接口
    orderRefund                 : SERVERURL + "mobile/mine_orders/refundOrder",
};
//=========================
// 用户部分
//=========================
Config.user = {
    //用户登录
    userLogin                     : SERVERURL + "common/login/companyLogin",
    //用户退出
    userLoginOut                : SERVERURL + "common/login/companyLogout",
    //用户个人信息
    userDetail                    : SERVERURL + "mobile/mine_personal/detail",
    //编辑用户信息
    userEdit                    : SERVERURL + "mobile/mine_personal/edit",
    //获取验证码
    getCode                     : SERVERURL + "mobile/mine_setting/forgetPassword",
    //验证验证码
    checkCode                     : SERVERURL + "mobile/mine_setting/checkVerificationCode",
    //重置密码
    resetPwd                    : SERVERURL + "mobile/mine_setting/resetPassword",
    //登陆页获取公司列表
    getCompanyList                : SERVERURL + "common/login/getCompanyListByMobile"
};

//=========================
//支付部分
//=========================
Config.pay = {
    //支付界面
    payInterface                :SERVERURL + "mobile/mine_orders/payInterface",
    //支付接口
    orderPayment                :SERVERURL + "mobile/mine_orders/orderPayment",
    wxpayStastus                :SERVERURL + "mobile/mine_orders/getWxPayStatus",
    //支付宝支付调试
    aliPay                        :SERVERURL + "mobile/mine_orders/alipay",
    //微信支付调试
    wxPay                         :SERVERURL + "mobile/mine_orders/wxpay",
    //获取微信OpenId
    getWxOpenId                 :SERVERURL + "mobile/mine_orders/getWxOpenid"
};

Config.param = {
    wxappid : 'wx92dedc49b3405e25'
};

/*路由地址*/
//注：这里先这样进行开发，要不做不完了
Config.api = {
    //=========================
    // 首页
    //=========================
    //手机首页幻灯片
    Get_slides                 : SERVERURL + 'mobile/index_slides/getSlides',
    //控制申请单、报销单显示
    Get_company_info             : SERVERURL + "mobile/index_company/getCompany",

    //=========================
    // 行程
    //=========================
    //行程列表
    Get_journey_list             : SERVERURL + "mobile/mine_orders/journeyList",

    //=========================
    // 用户部分
    //=========================
    //用户登录
    User_login                    : SERVERURL + "common/login/companyLogin",
    //用户登录
    User_loginOut                 : SERVERURL + "common/login/companyLogout",

    //用户个人信息
    User_detail                 : SERVERURL + "mobile/mine_personal/detail",
    //获取验证码
    Get_code                    : SERVERURL + "mobile/mine_setting/forgetPassword",
    //验证验证码
    Check_code                    : SERVERURL + "mobile/mine_setting/checkVerificationCode",
    //重置密码
    Reset_pwd                     : SERVERURL + "mobile/mine_setting/resetPassword",
    //获取系统公告
    Get_notice                    : SERVERURL + "mobile/index_notice/getIndexNoticeList",
    //获取常用出行人列表
    Get_travelers                 : SERVERURL + "mobile/mine_travelers/getpassengerlistbyuserid",
    //添加常用出行人列表
    Add_travelers                 : SERVERURL + "mobile/mine_travelers/save",
    //以base64方式上传图片
    Edit_avatar                 : SERVERURL + "mobile/mine_personal/uploadImgToBase64",
    //删除常用出行人
    Del_travelers                 : SERVERURL + "mobile/mine_travelers/delete",
    //获取常用联系人列表
    Get_contact                 : SERVERURL + 'common/mine_contacts/getMyContactList',
    //删除常用联系人
    Del_contact                 : SERVERURL + 'common/mine_contacts/delMyContact',
    //添加常用联系人
    Add_contact                 : SERVERURL + 'common/mine_contacts/addMyContact',
    //选择出行人列表
    Get_travel_user             : SERVERURL + 'mobile/index_train/getPassengerCardInfoList',

    //查询火车票列表
    Tickets_Available             : SERVERURL + "mobile/index_train/ticketsAvailable",
    //查询火车票详情
    Tickets_details             : SERVERURL + "mobile/index_train/ticketDetails",
    //查看是否有权限预定火车票
    Check_train_policy            : SERVERURL + "common/policy/checkMultiTrainPolicy",
    //获取用户的成本中心列表
    Get_users_cost_list         : SERVERURL + "common/cost/getUsersCostList",
    //获取当前火车票的违规原因
    Get_train_violation         : SERVERURL + "mobile/index_train/getTrainViolation",
    //获取多人政策和政策判断结果
    Get_multi_train_policy        : SERVERURL + "mobile/index_train/checkMultiTrainNoUniquePolicy",
    // 成本中心审批信息
    Get_approve_info            : SERVERURL + "mobile/index_train/getApproveInfo",


    //公司员工列表
    Get_company_user_list         : SERVERURL + "mobile/index_train/companyUsersList",

    //获取常用联系人列表
    Get_Contact                 : SERVERURL + "mobile/mine_contacts/getMyContactList",

    //去占座
    Save_seat                     : SERVERURL + "mobile/index_train/saveSeat",
    //提交火车票订单
    Submit_train_order            : SERVERURL + "common/train/submitorder",

    //=========================
    // 我的订单
    //=========================
    //订单列表
    Order_lists                 : SERVERURL + "mobile/mine_orders/getOrderList",
    //订单详情
    Train_order_info            : SERVERURL + "common/order/trainOrderInfo",
    //订单详情
    GetOrderInfo                : SERVERURL + "mobile/mine_orders/getOrderInfo",
    //取消订单
    Train_order_cancel            : SERVERURL + "mobile/mine_orders/cancelOrder",
    //退票接口
    Train_order_refund            : SERVERURL + "mobile/mine_orders/refundOrder",

    //=========================
    // 机票
    //=========================
    //机票列表
    Aircraft_lists                : SERVERURL + "mobile/index_plane/simplifiedPlaneItem",
    //机票航班详情
    Flight_info                 : SERVERURL + "common/plane/planeDetails",
    //飞机城市列表
    plane_city_list             : SERVERURL + "mobile/index_plane/airlineThreeCode",
    //酒店城市列表
    hotel_city_list             : SERVERURL + "mobile/index_hotel/getHotelCity",
    //火车城市列表
    train_city_list             : SERVERURL + "mobile/index_train/stationName",
    //获取电话
    Get_phone                     : SERVERURL + "mobile/index_hotel/customerService",
    //机票提交订单
    Plane_submit_order            : SERVERURL + "common/plane/submitOrder",
    //机票差旅政策
    Get_multi_plane_policy        : SERVERURL + "mobile/index_train/checkMultiPlaneNoUniquePolicy",
    //机票违规原因
    Get_plane_violation         : SERVERURL + "common/policy/getViolationReasonList",
    //机票第一次验价
    Check_plane_ticket            : SERVERURL + "common/plane/patByFlights",
    //创建PNR码
    Create_pnr                    : SERVERURL + "common/plane/createPnr",
    //二次验价
    Check_second_ticket         : SERVERURL + "common/plane/xmlRtPnr",
    //删除PNR码
    Delete_pnr                    : SERVERURL + "common/plane/deletePnr",

    //=========================
    // 酒店
    //=========================
    //酒店列表
    Gethotel_list                 : SERVERURL + "mobile/index_hotel/queryHotelList",
    //获取指定酒店房间列表
    GetRoomItem                 : SERVERURL + "mobile/index_hotel/getRoomItemByHotelId",
    //酒店城市商业圈和行政区
    Get_district                : SERVERURL + "mobile/index_hotel/getHotelLocation",
    //根据城市名称获取城市id
    GetCityId                     : SERVERURL + "mobile/index_hotel/getCityIdByName",
    //获取酒店房间
    GetHotelDetail                : SERVERURL + "mobile/index_hotel/getRoomItemByHotelId",
    //获取酒店差旅政策
    GetHotelPolicy                : SERVERURL + "common/policy/checkMultiHotelPolicy",
    //获取多人政策和政策判断结果
    GetHotelMultiPolicy         : SERVERURL + "mobile/index_train/checkMultiHotelNoUniquePolicy",
    // 员工信息 - 根据ID获取员工的信息
    getUserInfoByIds            : SERVERURL + "common/passenger/getUserInfoByIds",
    // 成本中心- 获取用户的成本中心
    GetUsersCostList            : SERVERURL + "common/cost/getUsersCostList",
    // 获取酒店图片
    getHotelStaticInfo            : SERVERURL + "mobile/index_Hotel/getHotelStaticInfo",
    // 获取酒店图片
    GetHotelImages                : SERVERURL + "common/Hotel/getHotelImages",
    // 提交订单
    HotelSubmitOrder            : SERVERURL + "common/Hotel/submitOrder",
    //
    GetOrderIncrStatus            : SERVERURL + "common/Hotel/getIncrOrder",

    //=========================
    // 个人中心
    //=========================
    //我的差旅政策
    My_trip_policy                : SERVERURL + "mobile/mine_policy/getMyTripPolicy",
    My_plane_policy             : SERVERURL + "common/policy/checkMultiPlanePolicy",
    ModifyPassword                : SERVERURL + "mobile/mine_setting/modifyPasswordByUserId",
    ModifyPayPassword             : SERVERURL + "mobile/mine_setting/modifyPayPasswordByUserId",

    //=========================
    // 出差申请、报销、补助单
    //=========================
    //出差申请单列表
    ApplyList					: SERVERURL + "common/travel/applyList",
    //出差申请单个人申请的列表
    MineApplyList				: SERVERURL + "common/travel/mineApplyList",
    //出差申请单详情
    ApplyInfo					: SERVERURL + "common/travel/applyInfo",
    //出差申请单添加页面所需信息
    GetAddApplyInfo				: SERVERURL + "common/travel/getAddApplyInfo",
    //出差申请单添加
    AddApply					: SERVERURL + "common/travel/addApply",
    //出差申请单审核
    ApplyExamineApprove			: SERVERURL + "common/travel/travelExamineApprove",
    //出差报销单列表
    ExpenseList					: SERVERURL + "common/travel/expenseList",
    //出差报销单详情
    ExpenseInfo					: SERVERURL + "common/travel/expenseInfo",
    //获取出差/审核人员接口
    GetPassengerList			: SERVERURL + "common/travel/getPassengerList",
    //获取差旅订单
    GetOrderList				: SERVERURL + "common/travel/getOrderList",
    //获取申请单关联订单
    GetApplyOrderList			: SERVERURL + "common/travel/getApplyOrderList",
    //出差报销单——添加
    AddExpense					: SERVERURL + "common/travel/addExpense",
    //以base64方式上传图片
    UploadImg                     : SERVERURL + "common/upload/uploadImgToBase64",
    //出差报销单审核
    ExpenseExamineApprove         : SERVERURL + "common/travel/expenseExamineApprove",
    //出差报销单取消
    ExpenseCancel                 : SERVERURL + "common/travel/expenseCancel",
    //出差报销单作废
    ExpenseInvalid                : SERVERURL + "common/travel/expenseInvalid",
    //出差申请单取消
    ApplyCancel                 : SERVERURL + "common/travel/applyCancel",
    //出差申请单作废
    ApplyInvalid                : SERVERURL + "common/travel/applyInvalid",
    //补助单-关联订单【出行人中有当前人的】
    GetApplyOrderListAllowance    : SERVERURL + "common/travel/getApplyOrderListAllowance",
    //补助单-申请单列表【出行人中有当前人的】
    MineApplyListAllowance        : SERVERURL + "common/travel/mineApplyListAllowance",
    //补助单-获取个人的订单
    GetOrderListAllowance         : SERVERURL + "common/travel/getOrderListAllowance",
    //补助单-添加
    AddAllowance                 : SERVERURL + "common/travel/addAllowance",
    //补助单-列表
    AllowanceList                 : SERVERURL + "common/travel/getAllowanceList",
    //获取补助单详情
    AllowanceInfo                 :SERVERURL + "common/travel/allowanceInfo",
    //出差补助单取消
    AllowanceCancel                 : SERVERURL + "common/travel/allowanceCancel",
    //出差补助单作废
    AllowanceInvalid                : SERVERURL + "common/travel/allowanceInvalid",
    //出差补助单审核
    AllowanceExamineApprove         : SERVERURL + "common/travel/allowanceExamineApprove",
    //获取差旅政策 城市信息
    GetTripPolicyCityByCompany         : SERVERURL + "common/travel/getTripPolicyCityByCompany",

    //=========================
    //支付部分
    //=========================
    //支付界面
    PayInterface                :SERVERURL + "mobile/mine_orders/payInterface",
    //支付接口
    OrderPayment                :SERVERURL + "mobile/mine_orders/orderPayment",
    WxpayStastus                :SERVERURL + "mobile/mine_orders/getWxPayStatus",
    //支付宝支付调试
    alipay                        :SERVERURL + "mobile/mine_orders/alipay",
    //微信支付调试
    wxpay                         :SERVERURL + "mobile/mine_orders/wxpay",
    //获取微信OpenId
    getWxOpenId                 :SERVERURL + "mobile/mine_orders/getWxOpenid"
};
